(function($){
    $(document).ready(function () {
        /*模板引擎设置*/
        _.templateSettings = {
            interpolate: /\{\{(.+?)\}\}/g
        };

        var BuyerModel=Backbone.Model.extend({
            initialize:function(){
                _.extend(this,new Backbone.Memento(this),{ignore:["description"]});
            }
        });

        var buyerModel=new BuyerModel();
        buyerModel.set({
            firstName:"wong",
            lastName:"jian"
        });

        buyerModel.set("price",10);
        buyerModel.store();

        buyerModel.set("price",20);
        buyerModel.store();

        buyerModel.set("price",30);
        buyerModel.restart();

        console.log(buyerModel.get("price"));



    });
})(jQuery);